package br.edu.sistemaacademico.proxy;

import br.edu.sistemaacademico.pojo.Pessoa;
import br.edu.sistemaacademico.pojo.Professor;
import client.ClientCommand;

public class LoginProfessor implements Login{
	
	@Override
	public Pessoa request(String login, String senha) {
		Professor professor = (Professor)ClientCommand.carregaObjeto("ProfessorService","login = '" +login+"' and senha= '"+senha+"' ","");
		if(professor!=null)
		    return professor;

		return null;
	}

}
